Mexico City is the capital city of Mexico and the largest city in North America, with a population of over 21 million people in the greater metropolitan area and the 2020 population for the city proper was 9,209,944. It is located in the Valley of Mexico, a high-altitude basin surrounded by mountains, and is situated at an altitude of 2,240 meters (7,350 feet) above sea level.